package com.yuneec.droneservice.model;

/**
 * Created by gjw on 2017/3/29.
 */

public class TelemetryData {

    int t; //packet counter or clock
    float lat; //lattitude (degrees) +/- 90 deg
    float lon; //longitude (degrees) +/- 180 deg
    float alt; //0.01m resolution, altitude (meters)
    int vx;
    int vy;
    int vz; //velocity 0.01m res, +/-320.00 North - East - Down
    int nsat; //number of satellites (up to 32), fix type (2 bits), gps used 1 bit
    float voltage; //25.4V voltage = 5 + 255*0.1 = 30.5V, min=5V
    float current; //0.5A resolution
    int roll;
    int pitch;
    float yaw; //0.01 degree resolution
    int motorStatus; //1 bit per motor for status 1=good, 0= fail
    int imuStatus; //mpu6050 (FC0), mpu6050 (IMU), accelerometer (IMU)
    int pressCompassGpsStatus; //pressure (FC0), pressure (IMU), compass1, compass2, GPS1, GPS2
    int fMode; //vehicle flight mode
    int vehicleType;
    int errorFlags1; //warning flagsuint8_t gpsAccH; //gps accuracy in 0.05m resolution
    int fsk_rssi; //[-100,0]
}
